From ea5f19324fb820f751c53b4b37b24cfd90e461ac Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 29 Apr 2009 11:53:23 +0100 Subject: [PATCH] x86 shadow: fix audit mode. Splintered L1s can have the dirty bit clean because of vram tracking. Signed-off-by: Gianluca Guida --- xen/arch/x86/mm/shadow/multi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 4e1fe8a7c0..072dda0b6b 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -4986,6 +4986,9 @@ int sh_audit_fl1_table(struct vcpu *v, mfn_t sl1mfn, mfn_t x) f = shadow_l1e_get_flags(*sl1e); f &= ~(_PAGE_AVAIL0|_PAGE_AVAIL1|_PAGE_AVAIL2); if ( !(f == 0 + || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_RW| + _PAGE_ACCESSED) + || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_ACCESSED) || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_RW| _PAGE_ACCESSED|_PAGE_DIRTY) || f == (_PAGE_PRESENT|_PAGE_USER|_PAGE_ACCESSED|_PAGE_DIRTY) -- 2.30.2